package com.person.jiaiplan.assembler;

import com.person.jiaiplan.pojo.dto.AddPlanInfoReqDTO;
import com.person.jiaiplan.pojo.dto.PlanInfoResDTO;
import com.person.jiaiplan.pojo.entity.ScheduleLogs;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ScheduleSettingAssembler {

    ScheduleSettingAssembler INSTANCE = Mappers.getMapper(ScheduleSettingAssembler.class);

    List<PlanInfoResDTO> toPlanInfoResDTOList(List<ScheduleLogs> list);

    ScheduleLogs toScheduleLogs(AddPlanInfoReqDTO addPlanInfoReqDTO);

    ScheduleLogs toScheduleLogs(PlanInfoResDTO planInfoResDTO);

}
